<!DOCTYPE html>
<html>
<head>
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<meta name="renderer" content="webkit|ie-comp|ie-stand">
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no" />
<meta charset="utf-8" />
<meta name="keywords" content="" />
<meta name="description" content="" />
<title></title>
<!--<script type="text/javascript" src="assets/js/jquery/1.11.3/jquery.min.js"></script>-->
<script src="assets/js/echart/3.1.10/echarts.common.min.js"></script>
<!--[if lt IE 9]>
<script src="assets/js/html5.js"></script>
<![endif]-->

<link rel="stylesheet" type="text/css" href="assets/css/style.css"/>
</head>
<body>
<div class="main">
	<div class="chart-wrap">
		<div class="chart" id="chartType_dp1"></div>
	</div>
</div>
<script type="text/javascript">
	var chartType_dp1 = echarts.init(document.getElementById('chartType_dp1'));
	var optiondp1 = {
        title: {
            text: '2016年1-4月部门数据统计',
            top:'top',
            left:'center'
        },
        tooltip: {
        	trigger: 'item'//axis,item
        	,formatter:function(p){
        		if(p.seriesType=='bar'){
        			var pr = sindex2str(p.seriesIndex);
	        		return '['+pr+']<br>'+p.name+'<br>'+p.seriesName+' : '+p.value;
        		}else{//line
        			return p.name+'<br>'+p.seriesName+' : '+p.value+'%';
        		}
        	}
        },
        legend: {
            show:true
            ,top:'bottom'
            ,left:'center'
            ,data:['城管局城北中队','城管局城中中队','城管局城南中队','城管局环科园中队','城管局城东中队'
            ,'[城管局城北中队]按期结案率','[城管局城中中队]按期结案率','[城管局城南中队]按期结案率','[城管局环科园中队]按期结案率','[城管局城东中队]按期结案率'
            ,'[城管局城北中队]结案率','[城管局城中中队]结案率','[城管局城南中队]结案率','[城管局环科园中队]结案率','[城管局城东中队]结案率']
        },
        grid:{
        	show :true,
        	bottom:100
        },
        xAxis: [
	        {
	            axisLabel :{
	            	interval :0
	            },
        		splitLine :{
        			show:false
        		},
	            data: ['2016年1月','2016年2月','2016年3月','2016年4月']
	        }
        ],
        yAxis: [
        	{
        		name :'数量'
        	},
        	{
        		name :'百分比',
        		axisLabel :{
        			formatter :'{value}%'
        		},
        		splitLine :{
        			show:false
        		}
        		,min:'dataMin'
        		,max:100
        	}
        ],
        series: [
	        {
	        	name:'城管局城北中队',
	        	type:'bar',
	        	stack:'a',
	        	data:[
	        	{value:512,
	        	itemStyle:{normal:{color:'#c23531'}}},
	        	{value:407,
	        	itemStyle:{normal:{color:'#c23531'}}},
	        	{value:622,
	        	itemStyle:{normal:{color:'#c23531'}}},
	        	{value:544,
	        	itemStyle:{normal:{color:'#c23531'}}}]
	        },
	        {
	        	name:'城管局城中中队',
	        	type:'bar',
	        	stack:'a',
	        	data:[
	        	{value:544,
	        	itemStyle:{normal:{color:'#2f4554'}}},
	        	{value:356,
	        	itemStyle:{normal:{color:'#2f4554'}}},
	        	{value:607,
	        	itemStyle:{normal:{color:'#2f4554'}}},
	        	{value:527,
	        	itemStyle:{normal:{color:'#2f4554'}}}]
	        },
	        {
	        	name:'城管局城南中队',
	        	type:'bar',
	        	stack:'a',
	        	data:[
	        	{value:437,
	        	itemStyle:{normal:{color:'#61a0a8'}}},
	        	{value:308,
	        	itemStyle:{normal:{color:'#61a0a8'}}},
	        	{value:507,
	        	itemStyle:{normal:{color:'#61a0a8'}}},
	        	{value:440,
	        	itemStyle:{normal:{color:'#61a0a8'}}}]
	        },
	        {
	        	name:'城管局环科园中队',
	        	type:'bar',
	        	stack:'a',
	        	data:[
	        	{value:375,
	        	itemStyle:{normal:{color:'#d48265'}}},
	        	{value:290,
	        	itemStyle:{normal:{color:'#d48265'}}},
	        	{value:448,
	        	itemStyle:{normal:{color:'#d48265'}}},
	        	{value:436,
	        	itemStyle:{normal:{color:'#d48265'}}}]
	        },
	        {
	        	name:'城管局城东中队',
	        	type:'bar',
	        	stack:'a',
	        	data:[
	        	{value:67,
	        	itemStyle:{normal:{color:'#91c7ae'}}},
	        	{value:64,
	        	itemStyle:{normal:{color:'#91c7ae'}}},
	        	{value:60,
	        	itemStyle:{normal:{color:'#91c7ae'}}},
	        	{value:46,
	        	itemStyle:{normal:{color:'#91c7ae'}}}]
	        },
	        /*应处置数-------end*/
	        {
	        	name:'城管局城北中队',
	        	type:'bar',
	        	stack:'b',
	        	data:[
	        	{value:507,
	        	itemStyle:{normal:{color:'#c23531'}}},
	        	{value:401,
	        	itemStyle:{normal:{color:'#c23531'}}},
	        	{value:614,
	        	itemStyle:{normal:{color:'#c23531'}}},
	        	{value:541,
	        	itemStyle:{normal:{color:'#c23531'}}}]
	        },
	        {
	        	name:'城管局城中中队',
	        	type:'bar',
	        	stack:'b',
	        	data:[
	        	{value:541,
	        	itemStyle:{normal:{color:'#2f4554'}}},
	        	{value:355,
	        	itemStyle:{normal:{color:'#2f4554'}}},
	        	{value:607,
	        	itemStyle:{normal:{color:'#2f4554'}}},
	        	{value:525,
	        	itemStyle:{normal:{color:'#2f4554'}}}]
	        },
	        {
	        	name:'城管局城南中队',
	        	type:'bar',
	        	stack:'b',
	        	data:[
	        	{value:436,
	        	itemStyle:{normal:{color:'#61a0a8'}}},
	        	{value:301,
	        	itemStyle:{normal:{color:'#61a0a8'}}},
	        	{value:504,
	        	itemStyle:{normal:{color:'#61a0a8'}}},
	        	{value:434,
	        	itemStyle:{normal:{color:'#61a0a8'}}}]
	        },
	        {
	        	name:'城管局环科园中队',
	        	type:'bar',
	        	stack:'b',
	        	data:[
	        	{value:374,
	        	itemStyle:{normal:{color:'#d48265'}}},
	        	{value:288,
	        	itemStyle:{normal:{color:'#d48265'}}},
	        	{value:444,
	        	itemStyle:{normal:{color:'#d48265'}}},
	        	{value:432,
	        	itemStyle:{normal:{color:'#d48265'}}}]
	        },
	        {
	        	name:'城管局城东中队',
	        	type:'bar',
	        	stack:'b',
	        	data:[
	        	{value:67,
	        	itemStyle:{normal:{color:'#91c7ae'}}},
	        	{value:64,
	        	itemStyle:{normal:{color:'#91c7ae'}}},
	        	{value:60,
	        	itemStyle:{normal:{color:'#91c7ae'}}},
	        	{value:46,
	        	itemStyle:{normal:{color:'#91c7ae'}}}]
	        },
	        /*按期结案数-------end*/
	        {
	        	name:'城管局城北中队',
	        	type:'bar',
	        	stack:'c',
	        	data:[
	        	{value:512,
	        	itemStyle:{normal:{color:'#c23531'}}},
	        	{value:407,
	        	itemStyle:{normal:{color:'#c23531'}}},
	        	{value:620,
	        	itemStyle:{normal:{color:'#c23531'}}},
	        	{value:544,
	        	itemStyle:{normal:{color:'#c23531'}}}]
	        },
	        {
	        	name:'城管局城中中队',
	        	type:'bar',
	        	stack:'c',
	        	data:[
	        	{value:544,
	        	itemStyle:{normal:{color:'#2f4554'}}},
	        	{value:356,
	        	itemStyle:{normal:{color:'#2f4554'}}},
	        	{value:607,
	        	itemStyle:{normal:{color:'#2f4554'}}},
	        	{value:526,
	        	itemStyle:{normal:{color:'#2f4554'}}}]
	        },
	        {
	        	name:'城管局城南中队',
	        	type:'bar',
	        	stack:'c',
	        	data:[
	        	{value:437,
	        	itemStyle:{normal:{color:'#61a0a8'}}},
	        	{value:305,
	        	itemStyle:{normal:{color:'#61a0a8'}}},
	        	{value:507,
	        	itemStyle:{normal:{color:'#61a0a8'}}},
	        	{value:438,
	        	itemStyle:{normal:{color:'#61a0a8'}}}]
	        },
	        {
	        	name:'城管局环科园中队',
	        	type:'bar',
	        	stack:'c',
	        	data:[
	        	{value:375,
	        	itemStyle:{normal:{color:'#d48265'}}},
	        	{value:290,
	        	itemStyle:{normal:{color:'#d48265'}}},
	        	{value:447,
	        	itemStyle:{normal:{color:'#d48265'}}},
	        	{value:434,
	        	itemStyle:{normal:{color:'#d48265'}}}]
	        },
	        {
	        	name:'城管局城东中队',
	        	type:'bar',
	        	stack:'c',
	        	data:[
	        	{value:67,
	        	itemStyle:{normal:{color:'#91c7ae'}}},
	        	{value:64,
	        	itemStyle:{normal:{color:'#91c7ae'}}},
	        	{value:60,
	        	itemStyle:{normal:{color:'#91c7ae'}}},
	        	{value:46,
	        	itemStyle:{normal:{color:'#91c7ae'}}}]
	        },
	        /*结案数-------end*/
	        ,{
	       		name:'[城管局城北中队]按期结案率',
	       		type:'line',
	       		symbol :'pin',
	       		symbolSize :15,
	       		yAxisIndex :1,
	       		itemStyle:{
	       			normal:{
	       				color:'#FE9A01'
	       			}
	       		},
	       		data:[99.02,98.52,98.71,99.44]
	        },
	        ,{
	       		name:'[城管局城中中队]按期结案率',
	       		type:'line',
	       		symbol :'pin',
	       		symbolSize :15,
	       		yAxisIndex :1,
	       		itemStyle:{
	       			normal:{
	       				color:'#00E3D8'
	       			}
	       		},
	       		data:[99.44,99.71,100,99.62]
	        },
	        ,{
	       		name:'[城管局城南中队]按期结案率',
	       		type:'line',
	       		symbol :'pin',
	       		symbolSize :15,
	       		yAxisIndex :1,
	       		itemStyle:{
	       			normal:{
	       				color:'#987800'
	       			}
	       		},
	       		data:[99.77,97.72,99.40,98.63]
	        },
	        ,{
	       		name:'[城管局环科园中队]按期结案率',
	       		type:'line',
	       		symbol :'pin',
	       		symbolSize :15,
	       		yAxisIndex :1,
	       		itemStyle:{
	       			normal:{
	       				color:'#688ff4'
	       			}
	       		},
	       		data:[99.73,99.31,99.10,99.08]
	        },
	        ,{
	       		name:'[城管局城东中队]按期结案率',
	       		type:'line',
	       		symbol :'pin',
	       		symbolSize :15,
	       		yAxisIndex :1,
	       		itemStyle:{
	       			normal:{
	       				color:'#23ae39'
	       			}
	       		},
	       		data:[100,100,100,100]
	        },
	        {
	       		name:'[城管局城北中队]结案率',
	       		type:'line',
	       		symbol :'rect',
	       		symbolSize :10,
	       		yAxisIndex :1,
	       		itemStyle:{
	       			normal:{
	       				color:'#e16f6e'
	       			}
	       		},
	       		data:[100,100,99.67,100]
	        },
	        {
	       		name:'[城管局城中中队]结案率',
	       		type:'line',
	       		symbol :'rect',
	       		symbolSize :10,
	       		yAxisIndex :1,
	       		itemStyle:{
	       			normal:{
	       				color:'#ca8622'
	       			}
	       		},
	       		data:[100,100,100,99.81]
	        },
	        {
	       		name:'[城管局城南中队]结案率',
	       		type:'line',
	       		symbol :'rect',
	       		symbolSize :10,
	       		yAxisIndex :1,
	       		itemStyle:{
	       			normal:{
	       				color:'#bda29a'
	       			}
	       		},
	       		data:[100,99.02,100,99.54]
	        },
	        {
	       		name:'[城管局环科园中队]结案率',
	       		type:'line',
	       		symbol :'rect',
	       		symbolSize :10,
	       		yAxisIndex :1,
	       		itemStyle:{
	       			normal:{
	       				color:'#546570'
	       			}
	       		},
	       		data:[100,100,99.77,99.54]
	        },
	        {
	       		name:'[城管局城东中队]结案率',
	       		type:'line',
	       		symbol :'rect',
	       		symbolSize :10,
	       		yAxisIndex :1,
	       		itemStyle:{
	       			normal:{
	       				color:'#c4ccd3'
	       			}
	       		},
	       		data:[100,100,100,100]
	        }
        ]
    };
    chartType_dp1.setOption(optiondp1);


/*---common-functions----*/
function sindex2str(sindex){
	var prnum = sindex+1;
	var pr_ = '应处置数';
	if( prnum > 5){
		pr_ = '按期结案数';
		if(prnum > 10){
			pr_ = '结案数';
		}
	}
	return pr_
}
</script>
</body>
</html>
